Platform Explorer / Nuxeo Platform 2021.26

Component org.nuxeo.ecm.platform.commandline.executor.service.soffice

Requirements

Resolution Order

323
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.commandline.executor.service.soffice">

  <require>org.nuxeo.ecm.platform.commandline.executor.service.defaultContrib</require>

  <extension target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent"
             point="command">
    <command name="soffice" enabled="true">
      <commandLine>soffice</commandLine>
      <winCommand>soffice.exe</winCommand>
      <parameterString>--headless --norestore --writer --convert-to #{format} #{sourceFilePath} --outdir #{outDirPath} -env:UserInstallation=#{userInstallation}</parameterString>
      <testParameterString>--version</testParameterString>
      <winTestParameterString>--headless --cat test</winTestParameterString>
      <installationDirective>You need to install LibreOffice and add soffice to the PATH environment variable.
      </installationDirective>
    </command>
  </extension>

</component>